package com.jiangyao.model.vo;

import com.jiangyao.common.ApiResult;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 分页列表对象VO
 *
 * @author: yangyongchuan
 * @create: 2020年08月09日 13:56
 */
@Data
@ApiModel(value = "分页列表对象", parent = ApiResult.class)
public class ListPageVO<T> implements Serializable {
	private static final long serialVersionUID = -925854563094646237L;
	@ApiModelProperty(value = "数据集合")
	private List<T> list;
	@ApiModelProperty(value = "分页数据")
	private Page page;

	@Data
	@ApiModel(value = "分页数据", parent = ListPageVO.class)
	public static class Page {
		@ApiModelProperty(value = "总条数")
		private Long total = 0L;
		@ApiModelProperty(value = "总页数")
		private Long pages = 0L;
		@ApiModelProperty(value = "当前页码")
		private Long pageNo = 1L;
		@ApiModelProperty(value = "每页条数")
		private Long pageSize = 10L;
	}


}
